import Toast from 'tdesign-miniprogram/toast/index';
import { config } from '../../config/index';
import i18nInstance from "../../miniprogram_npm/miniprogram-i18n-plus/index"

Component({

  properties: {
    Id: {
      type: Number,
      value: 0,
    },
    data: {
      type: Object,
      value: {}
    },
    currency: {
      type: String,
      value: '¥',
    },
    src: {
      type: String,
      value: ""
    },
    title: {
      type: String,
      value: ""
    },
    subtitle1: {
      type: String,
      value: ""
    },
    subtitle2: {
      type: String,
      value: ""
    },
    num: {
      type: Number,
      value: 0
    },
    currentTabIndex: {
      type: Number,
      value: 0,
    },
    model_1: {
      type: String,
      value: ""
    },
    model_2: {
      type: String,
      value: ""
    }
  },


  data: {
    TabsArr: ["成型机械", "机器人应用", "配料系统"],
    ShowDialog: false,
    visible: false
  },

  lifetimes: {
    ready() {
      i18nInstance.effect(this);
    },
  },
  methods: {
    AddToReservation(event) {
      const Id = this.data.Id;
      const openid = wx.getStorageSync('openid');
      wx.navigateTo({
        url: `/pages/goods/reservation-info/index?Id=${Id}`,
      })
    },
  }
})
